.class Lcom/example/m6wmr/MainActivity$11;
.super Ljava/lang/Thread;
.source "MainActivity.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/MainActivity;->setbaidutosiet()Z
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/MainActivity;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/MainActivity;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/MainActivity$11;->this$0:Lcom/example/m6wmr/MainActivity;

    .line 896
    invoke-direct {p0}, Ljava/lang/Thread;-><init>()V

    return-void
.end method


# virtual methods
.method public run()V
    .locals 10

    .prologue
    .line 898
    invoke-super {p0}, Ljava/lang/Thread;->run()V

    .line 902
    new-instance v2, Landroid/os/Message;

    invoke-direct {v2}, Landroid/os/Message;-><init>()V

    .line 904
    .local v2, "msg":Landroid/os/Message;
    iget-object v7, p0, Lcom/example/m6wmr/MainActivity$11;->this$0:Lcom/example/m6wmr/MainActivity;

    .line 905
    const-string v8, "userInfo"

    const/4 v9, 0x0

    .line 904
    invoke-virtual {v7, v8, v9}, Lcom/example/m6wmr/MainActivity;->getSharedPreferences(Ljava/lang/String;I)Landroid/content/SharedPreferences;

    move-result-object v4

    .line 906
    .local v4, "preferences":Landroid/content/SharedPreferences;
    const-string v7, "uid"

    const-string v8, ""

    invoke-interface {v4, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    .line 907
    .local v1, "account":Ljava/lang/String;
    if-eqz v1, :cond_0

    const-string v7, ""

    invoke-virtual {v1, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-eqz v7, :cond_1

    .line 930
    :cond_0
    :goto_0
    return-void

    .line 913
    :cond_1
    const-string v7, "pass"

    const-string v8, ""

    invoke-interface {v4, v7, v8}, Landroid/content/SharedPreferences;->getString(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 915
    .local v3, "password":Ljava/lang/String;
    invoke-static {}, Lcom/igexin/sdk/PushManager;->getInstance()Lcom/igexin/sdk/PushManager;

    move-result-object v7

    iget-object v8, p0, Lcom/example/m6wmr/MainActivity$11;->this$0:Lcom/example/m6wmr/MainActivity;

    # getter for: Lcom/example/m6wmr/MainActivity;->mcontext:Landroid/content/Context;
    invoke-static {v8}, Lcom/example/m6wmr/MainActivity;->access$3(Lcom/example/m6wmr/MainActivity;)Landroid/content/Context;

    move-result-object v8

    invoke-virtual {v7, v8}, Lcom/igexin/sdk/PushManager;->getClientid(Landroid/content/Context;)Ljava/lang/String;

    move-result-object v0

    .line 917
    .local v0, "BaiduAppId":Ljava/lang/String;
    if-eqz v0, :cond_0

    const-string v7, ""

    invoke-virtual {v0, v7}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v7

    if-nez v7, :cond_0

    .line 920
    new-instance v7, Ljava/lang/StringBuilder;

    iget-object v8, p0, Lcom/example/m6wmr/MainActivity$11;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v8, v8, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    invoke-virtual {v8}, Lmyapp/MyApp;->getWebConfig()Ljava/lang/String;

    move-result-object v8

    invoke-static {v8}, Ljava/lang/String;->valueOf(Ljava/lang/Object;)Ljava/lang/String;

    move-result-object v8

    invoke-direct {v7, v8}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    .line 921
    const-string v8, "/index.php?ctrl=app&action=appbuybaidu&userid="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    .line 922
    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&uid="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    const-string v8, "&pwd="

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    invoke-virtual {v7, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    .line 923
    const-string v8, "&datatype=json"

    invoke-virtual {v7, v8}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v7

    .line 920
    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v6

    .line 925
    .local v6, "url":Ljava/lang/String;
    const-string v7, "\u9644\u8fd1\u5546\u5bb6"

    invoke-static {v7, v6}, Landroid/util/Log;->e(Ljava/lang/String;Ljava/lang/String;)I

    .line 927
    iget-object v7, p0, Lcom/example/m6wmr/MainActivity$11;->this$0:Lcom/example/m6wmr/MainActivity;

    iget-object v7, v7, Lcom/example/m6wmr/MainActivity;->m:Lmyapp/MyApp;

    invoke-static {v6, v7}, LPlugclass/HttpConn;->getStr(Ljava/lang/String;Lmyapp/MyApp;)Ljava/lang/String;

    move-result-object v5

    .line 928
    .local v5, "str":Ljava/lang/String;
    const-string v7, "Marinactivity"

    new-instance v8, Ljava/lang/StringBuilder;

    const-string v9, "setbaidutosiet \u8fd4\u56de\u6570\u636e"

    invoke-direct {v8, v9}, Ljava/lang/StringBuilder;-><init>(Ljava/lang/String;)V

    invoke-virtual {v8, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v8

    invoke-static {v7, v8}, Lmyapp/Mylog;->d(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0
.end method

.method public declared-synchronized start()V
    .locals 1

    .prologue
    .line 935
    monitor-enter p0

    :try_start_0
    invoke-super {p0}, Ljava/lang/Thread;->start()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    .line 936
    monitor-exit p0

    return-void

    .line 935
    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0
.end method
